import sys

from ..glda import gpu_train


def run():
    corpus_fp = sys.argv[2]
    topic_num = int(sys.argv[3])
    model_fp = sys.argv[4]
    try:
        iterations = int(sys.argv[5])
    except IndexError:
        iterations = 50
    gpu_train(corpus_fp, model_fp, topic_num, iterations)
